home *** CD-ROM | disk | FTP | other *** search
- on MouseClock monBt
- global gMsCast, gLabel, gAcLabel, gSurvolPrec, gThLabel
- if getPos(list("DE", "SU", "TH", "TR"), monBt) <> 0 then
- set gAcLabel to "AC:OU"
- set gLabel to monBt & ":IN"
- continue()
- else
- alert("Partie en cours de d┼╜velopppement")
- end if
- end
-
- on MouseClick monBt
- global gMsCast, gLabel, gAcLabel, gSurvolPrec, gThLabel, g1erSprLoc, gMaxBoutons, gIndSel, gBoutons, gEtudAct, g1erSprChr
- if monBt = "OU" then
- set gAcLabel to "AC:OU"
- puppetSound(0)
- set gLabel to "BYE"
- else
- if monBt = "DE" then
- set gAcLabel to "AC:OU"
- set gLabel to "DE:mon"
- continue()
- else
- if getPos(list("SU", "TH", "PH"), monBt) <> 0 then
- set gAcLabel to "AC:OU"
- set gLabel to monBt & ":IN"
- else
- if monBt = "DX" then
- beep()
- else
- if monBt = "MI" then
- repeat with i = g1erSprChr to g1erSprLoc + 12
- set the visible of sprite i to 0
- end repeat
- set the visible of sprite 2 to 1
- set the visible of sprite (g1erSprLoc + 14) to 1
- set the visible of sprite (g1erSprLoc + 15) to 1
- puppetSound(0)
- JukeBox(0, "J.AIF")
- else
- beep()
- end if
- end if
- end if
- end if
- end if
- set gSurvolPrec to -1
- end
-
- on mouseDown
- global g1erSprLoc, gNumSpr
- curseur(2)
- go(the frame)
- set gNumSpr to 0
- repeat with i = g1erSprLoc to g1erSprLoc + 10
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global g1erSprLoc, gNumSpr
- curseur(1)
- set monNumSpr to -1
- repeat with i = g1erSprLoc to g1erSprLoc + 10
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr = gNumSpr) and (gNumSpr <> 0) then
- set monBt to chars(word 1 of the name of cast the castNum of sprite gNumSpr, 4, 5)
- MouseClick(monBt)
- else
- pass()
- end if
- end
-